package com.iwhalecloud.bss.kite.cucc.dataservice.entity;

import java.io.Serializable;

/**
 * 是否查看草稿和待提交订单配置表
 * @TableName query_result_config
 */
public class QueryResultConfig implements Serializable {
    /**
     * 主键
     */
    private Long configId;

    /**
     * 工号id
     */
    private Long staffId;

    /**
     * 是否查看草稿和待提交订单：1是，0否
     */
    private Integer checkResult;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Long getConfigId() {
        return configId;
    }

    /**
     * 主键
     */
    public void setConfigId(Long configId) {
        this.configId = configId;
    }

    /**
     * 工号id
     */
    public Long getStaffId() {
        return staffId;
    }

    /**
     * 工号id
     */
    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    /**
     * 是否查看草稿和待提交订单：1是，0否
     */
    public Integer getCheckResult() {
        return checkResult;
    }

    /**
     * 是否查看草稿和待提交订单：1是，0否
     */
    public void setCheckResult(Integer checkResult) {
        this.checkResult = checkResult;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        QueryResultConfig other = (QueryResultConfig) that;
        return (this.getConfigId() == null ? other.getConfigId() == null : this.getConfigId().equals(other.getConfigId()))
            && (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()))
            && (this.getCheckResult() == null ? other.getCheckResult() == null : this.getCheckResult().equals(other.getCheckResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getConfigId() == null) ? 0 : getConfigId().hashCode());
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        result = prime * result + ((getCheckResult() == null) ? 0 : getCheckResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", configId=").append(configId);
        sb.append(", staffId=").append(staffId);
        sb.append(", checkResult=").append(checkResult);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
